package com.hmdp.utils;

/**
 * @author 李捷禧
 * Date: 2022/11/25
 * ClassName: ILock
 */

public interface ILock {

    /**
     * 尝试获取锁
     * @param timeoutSec
     * @return
     */
    boolean tryLock(long timeoutSec);

    /**
     * 释放锁
     */
    void unlock();


}
